package com.wash.shoes.common.property;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author chilei
 * @description
 * @since 2023/7/20
 */
@Component
@Getter
@Setter
public class WxPayProperties {
    /**
     * 设置微信公众号或者小程序等的appid
     */
    @Value("${wx.pay.appid:}")
    private String appid;
    /**
     * 微信支付商户号
     */
    @Value("${wx.pay.mchId:}")
    private String mchId;

    @Value("${wx.pay.privateKeyContent:}")
    private String privateKeyContent;

    @Value("${wx.pay.privateCertContent:}")
    private String privateCertContent;

    /**
     * privateKeyPath
     */
    @Value("${wx.pay.privateKeyPath:}")
    private String privateKeyPath;


    @Value("${wx.pay.mchKey:}")
    private String mchKey;

    /**
     * 下单回调地址
     */
    @Value("${wx.pay.notifyUrl:}")
    private String notifyUrl;

    /**
     * 退款回调地址
     */
    @Value("${wx.pay.refundUrl:}")
    private String refundUrl;

    /**
     * apiV3key
     */
    @Value("${wx.pay.apiV3key:}")
    private String apiV3key;
}
